package com.dao;

import com.model.pojo.Package;
import com.model.pojo.Portfolio;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface PortfolioMapper {
    List<Portfolio> findPortfolioList(Portfolio portfolio);

    List<Package> findPackageList(Package packages);

    /**
     * 根据套餐编号查询对应的项目ID
     * @param pid
     * @return
     */
    @Select("select portfolio_id from portfolio where package_id=#{pid}")
    List<Integer> findIdByPackage(@Param("pid") Integer pid);
}
